import React from 'react';

const MsgItem = ({ msg }) => {
  return (
    <div className='msg-item'>
      <span>{msg.id}</span>
      <span>{msg.msg}</span>
      <span>{msg.user}</span>
      <span>{msg.time}</span>
    </div>
  );
}

export default MsgItem;
